package com.zh.config.mybatis;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description: MyBatisPlusConfig配置类
 * @ClassName MyBatisPlusConfig
 * @date: 2021.05.10 14:55
 * @Author: zhanghang
 */
@Configuration
public class MyBatisPlusConfig {

    /**
     * description: 分页查询
     * date: 2021年-05月-10日 14:58
     * author: zhanghang
     * 
     * @param 
     * @return com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor
     */ 
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
